package a.f.j.a;

import java.util.Iterator;

class h
{
  b a = new b(null, null, null);
  
  h()
  {
    this.a.a(this.a);
    this.a.b(this.a);
  }
  
  boolean a()
  {
    return this.a.c() == this.a;
  }
  
  public Iterator b()
  {
    new Iterator()
    {
      b a = h.this.a;
      
      public boolean hasNext()
      {
        return this.a.c != h.this.a;
      }
      
      public Object next()
      {
        this.a = this.a.c;
        return this.a.a();
      }
      
      public void remove()
      {
        b localb = this.a.d;
        this.a.f();
        this.a = localb;
      }
    };
  }
  
  b a(j paramj)
  {
    return this.a.d.a(paramj);
  }
  
  void a(b paramb)
  {
    this.a.d.c(paramb);
  }
  
  b b(j paramj)
  {
    return this.a.a(paramj);
  }
  
  void c(b paramb)
  {
    this.a.c(paramb);
  }
  
  void a(h paramh)
  {
    d().a(paramh);
  }
  
  void b(h paramh)
  {
    this.a.a(paramh);
  }
  
  void c(h paramh)
  {
    paramh.i();
    a(paramh);
  }
  
  void d(h paramh)
  {
    paramh.i();
    b(paramh);
  }
  
  b c()
  {
    return this.a.c;
  }
  
  b d()
  {
    return this.a.d;
  }
  
  j e()
  {
    b localb = this.a.c;
    if ((c.i) || (localb != this.a))
    {
      j localj = localb.a();
      localb.f();
      return localj;
    }
    throw new RuntimeException("List is empty! Cannot remove any elements!");
  }
  
  j f()
  {
    b localb = this.a.d;
    if ((c.i) || (localb != this.a))
    {
      j localj = localb.a();
      localb.f();
      return localj;
    }
    throw new RuntimeException("List is empty! Cannot remove any elements!");
  }
  
  j g()
  {
    return this.a.c.a();
  }
  
  j h()
  {
    return this.a.d.a();
  }
  
  void i()
  {
    b localb1 = null;
    b localb2 = this.a;
    do
    {
      localb1 = localb2.c();
      localb2.a(localb2.e());
      localb2.b(localb1);
      localb2 = localb2.e();
    } while (localb2 != this.a);
  }
  
  public String toString()
  {
    boolean bool2 = c.i;
    boolean bool1 = c.h;
    String str = "[";
    Iterator localIterator = b();
    if (localIterator.hasNext())
    {
      if (bool1) {
        break label121;
      }
      if (str != "[") {
        str = str + ", ";
      }
    }
    while (bool2)
    {
      str = str + "(" + localIterator.next().toString() + ")";
      if (!bool1) {
        break;
      }
    }
    label121:
    return str + "]";
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.j.a.h
 * JD-Core Version:    0.7.0.1
 */